/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */
package org.sdemo;

/**
 * <p>Project: jse2302 - MyDemo
 * <p>Powered by webrx On 2023-06-19 11:50:41
 * <p>Created by IntelliJ IDEA
 *
 * @author  webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class MyDemo {
    public static void m1(int n) {
        if(n>=0){
            System.out.println(n);
            m1(n-1);
        }
    }

    public static void m2(int n) {
        if(n>=0){
            m2(n-1);
            System.out.println(n);
        }
    }
    public static void main(String[] args) {
        m1(6);
        m2(6);

        //B a = new B();
        //System.out.println("-----------------");
        //B c = new B();
    }
}
